package jdly.water.api.dao.cost;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import jdly.water.api.util.PageUtil;
import jdly.water.entity.cost.BalanceRecord;
import jdly.water.entity.cost.PayRecord;

public interface BalanceDao extends JpaRepository<BalanceRecord,String>{
	
	@Query(value=" SELECT p FROM BalanceRecord p WHERE p.account.id = ?1 ORDER BY p.createtime desc,p.id desc")
	public List<BalanceRecord> list(String id);

}
